package com.fjd.mapper;

import com.fjd.entity.LiveBroadcast;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface LiveBroadcastMapper {

    @Select("select * from live_broadcast where is_live = 1")
    List<LiveBroadcast> list();

    @Update("update live_broadcast set is_live = #{status} where anchor_id = #{customerId}")
    void updateStatus(String status,String customerId);
}
